import React, { useState, useEffect } from 'react'
import Hoc from '../Hoc'
import axios from '../axios/axios'
import { useNavigate,useLocation } from 'react-router-dom'
export default function Reservation_xx() {
    const location = useLocation()
    const [department,setDepartment]=useState([])
    const searchPrams = new URLSearchParams(location.search)
    const id=location.search.split('&&')[0].split('=')[1]
    const date=location.search.split('&&')[1].split('=')[1]
    const time=searchPrams.get('time')
    const get_dan = async () => {
        let data = await axios.get('/dan_department', {
            params: {
                _id: id
            }
        })
        setDepartment(data.data)
    }
    useEffect(() => {
        get_dan()
    }, [])
    return (
        <div>
            <Hoc title='预约信息'></Hoc>

        </div>
    )
}